package Si.Assign1.Model;

import java.io.Serializable;
import java.sql.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


public class CustomerOrderDetails 
{
	public CustomerOrderDetails(){}

	/*
	 * Properties
	 */
	
	/*
	 * Set and get id
	 */
	public int getId()
	{	return id;   }
	public void setId(int id)
	{   this.id = id;  }
	
	/*
	 * Set and get order_id
	 */
	public int getOrderId()
	{   return orderId;  }
	public void setOrderId(int orderId)
	{   this.orderId = orderId;  }
	
	/*
	 * Set and get quantity
	 */
	public int getQuantity()
	{    return quantity;   }
	public void setQuantity(int quantity)
	{    this.quantity = quantity;  }
	
	/*
	 * Set and get product_id
	 */
	public int getProductId()
	{    return productId;   }
	public void setProdcutId(int productId)
	{    this.productId = productId;  }
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Basic(optional=false)
	@Column(name="id", nullable=false)
	private int id;
	@Column(name="order_id", nullable=false)
	private int orderId;
	@Column(name="quantity", nullable=false)
	private int quantity;
	@Column(name="product_id", nullable=false)
	private int productId;

}
